package com.medicine.product.study.singleton;

/**
 * @author lynn
 * @version 1.0
 * @date 2022/2/14
 */
//懒汉式
public class LanSingleton {
    private static LanSingleton instance = null;

    private LanSingleton(){

    }

    public static LanSingleton getInstance(){
        if(instance==null){
            instance = new LanSingleton();
        }
        return instance;
    }


}
